package com.ruoyi.system.domain.patient;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分组对象 group
 * 
 * @author sergio
 * @date 2024-11-13
 */
public class Group extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分组唯一标识，主键，自增长 */
    private Long id;

    /** 该分组所属的医生ID，关联医生表中的 doctor_id */
    @Excel(name = "该分组所属的医生ID，关联医生表中的 doctor_id")
    private Long doctorId;

    /** 分组名称，用于描述分组的名称 */
    @Excel(name = "分组名称，用于描述分组的名称")
    private String groupName;

    /** 记录该分组的创建人，通常是管理员或系统用户 */
    @Excel(name = "记录该分组的创建人，通常是管理员或系统用户")
    private String createUser;

    /** 记录最后更新该分组的用户（可以是管理员或系统用户） */
    @Excel(name = "记录最后更新该分组的用户", readConverterExp = "可以是管理员或系统用户")
    private String updateUser;

    /** 腾讯IM群组ID，用于标识群组在腾讯IM系统中的唯一标识 */
    @Excel(name = "腾讯IM群组ID，用于标识群组在腾讯IM系统中的唯一标识")
    private String imGroupId;

    /** 腾讯IM群组的名称 */
    @Excel(name = "腾讯IM群组的名称")
    private String imGroupName;

    /** 腾讯IM群组类型，公开（public）或私有（private） */
    @Excel(name = "腾讯IM群组类型，公开", readConverterExp = "p=ublic")
    private String imGroupType;

    /** 群组状态，活跃（active）或非活跃（inactive） */
    @Excel(name = "群组状态，活跃", readConverterExp = "a=ctive")
    private String imGroupStatus;

    /** 腾讯IM群组创建者的用户ID，关联医生或管理员 */
    @Excel(name = "腾讯IM群组创建者的用户ID，关联医生或管理员")
    private Long imCreatorId;

    /** 腾讯IM群组创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "腾讯IM群组创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date imCreationTime;

    /** 腾讯IM群组成员数量，默认为0 */
    @Excel(name = "腾讯IM群组成员数量，默认为0")
    private Long imMemberCount;

    /** 群组禁用状态 */
    @Excel(name = "群组禁用状态 1启用 2禁用")
    private Long groupType;

    public Long getGroupType() {
        return groupType;
    }

    public void setGroupType(Long groupType) {
        this.groupType = groupType;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setGroupName(String groupName) 
    {
        this.groupName = groupName;
    }

    public String getGroupName() 
    {
        return groupName;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }
    public void setImGroupId(String imGroupId) 
    {
        this.imGroupId = imGroupId;
    }

    public String getImGroupId() 
    {
        return imGroupId;
    }
    public void setImGroupName(String imGroupName) 
    {
        this.imGroupName = imGroupName;
    }

    public String getImGroupName() 
    {
        return imGroupName;
    }
    public void setImGroupType(String imGroupType) 
    {
        this.imGroupType = imGroupType;
    }

    public String getImGroupType() 
    {
        return imGroupType;
    }
    public void setImGroupStatus(String imGroupStatus) 
    {
        this.imGroupStatus = imGroupStatus;
    }

    public String getImGroupStatus() 
    {
        return imGroupStatus;
    }
    public void setImCreatorId(Long imCreatorId) 
    {
        this.imCreatorId = imCreatorId;
    }

    public Long getImCreatorId() 
    {
        return imCreatorId;
    }
    public void setImCreationTime(Date imCreationTime) 
    {
        this.imCreationTime = imCreationTime;
    }

    public Date getImCreationTime() 
    {
        return imCreationTime;
    }
    public void setImMemberCount(Long imMemberCount) 
    {
        this.imMemberCount = imMemberCount;
    }

    public Long getImMemberCount() 
    {
        return imMemberCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("doctorId", getDoctorId())
            .append("groupName", getGroupName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("imGroupId", getImGroupId())
            .append("imGroupName", getImGroupName())
            .append("imGroupType", getImGroupType())
            .append("imGroupStatus", getImGroupStatus())
            .append("imCreatorId", getImCreatorId())
            .append("imCreationTime", getImCreationTime())
            .append("imMemberCount", getImMemberCount())
            .toString();
    }
}
